package com.hurried1y.model.constant;

import lombok.Data;

/**
 * @author Hurried1y
 * @since 2023/6/19 15:08
 */

public class RedisKeyConstant {
    //更新用户钱包 -- 分布式锁key
    public static String UPDATE_WALLET_LOCK_KEY = "label:lock:";

    //更新用户钱包 -- 分布式锁key的过期时间
    public static Long EXPIRE_TIME = 1000*60L;

    //更新用户钱包 -- 消费幂等key
    public static String CONSUME_IDEMPOTENT_KEY = "label:consumeIdempotent:";

    //更新用户钱包 -- 消费幂等key的过期时间
    public static Long CONSUME_IDEMPOTENT_EXPIRE_TIME = 1000*60L;

    public static final String RATE_LIMIT_KEY = "rate_limit:";
}
